import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 商品管理模块
const GoodsSkuRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		path: "/GoodsSku",
		meta: {
			title: "规格管理"
		},
		children: [
			{
				path: "/GoodsSku/List",
				element: lazyLoad(React.lazy(() => import("@/views/goodsSku/list/index"))),
				meta: {
					requiresAuth: true,
					title: "规格列表",
					key: "GoodsSkuList"
				}
			},
			{
				path: "/GoodsSku/Sku",
				element: lazyLoad(React.lazy(() => import("@/views/goodsSku/sku/index"))),
				meta: {
					requiresAuth: true,
					title: "Sku列表",
					key: "GoodsSkuSku"
				}
			}
		]
	}
];

export default GoodsSkuRouter;
